package com.allwees.bs.core.model.merchant.entity;

import com.allwees.bs.core.modelbase.entity.BaseEntity;
import com.allwees.core.common.constant.EWithdrawAccountType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

@Data
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
public abstract class StoreModel extends BaseEntity {
	@Column(length = 24)
	private String no;

	// 店铺名称
	@Column(length = 48)
	private String name;

	// 店铺描述
	@Column(length = 4096)
	private String description;

	// 店铺类型
	private Integer type;

	// 零售商uuid
	@Column(name = "retailer_uuid",insertable = false, updatable = false, length = 48)
	private String retailerUuid;

	// 总销量数
	private Integer totalSales;

	private Integer totalCollections;

	// 店铺头像
	private String avatar;

	// 评分
	private Float rating;

	private Integer totalNewProduct;

	private EWithdrawAccountType merchantType;

	private String categoryNo;
}
